home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / March 96 / Re Mouse Event Handling < prev    next >
Encoding:
Internet Message Format  |  1996-12-03  |  1.2 KB  |  [TEXT/ttxt]

  1. Subject:     Re: Mouse Event Handling
  2. Sent:        3/8/96 6:17 PM
  3. Received:    3/11/96 8:27 AM
  4. From:        lamiraux@apple.com
  5. Reply-To:    ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8. >How do I use the MouseEnter, MouseWithin and MouseLeave event handler methods
  9. >while the mouse button is still down? 
  10. >
  11. >It appears that FW_CODPart::HandleEvent() is called with a nullEvent when the
  12. >mouse button is still down?  I thought that I could check for a mouse still
  13. >down in FW_CEventDispatcher::Dispatch()'s nullEvent; then call one of the
  14. >other mouse events.  However, when FW_CEventDispatcher::Dispatch() is called,
  15. >the odFrame is NULL, but the mouse position is available in the event record.
  16. >
  17. >Is it possible to get the appropriate frame and call MouseEnter, MouseWithin
  18. >or MouseLeave?  Or is there an easier way to take advantage of these mouse
  19. >event methods when the mouse button is still down?
  20. >
  21. >Thanks,
  22. >Ken
  23. >BikeB4Work@aol.com
  24.  
  25. OpenDoc only send MouseEnter, MouseWithin and MouseLeave events when the 
  26. mouse is up. They don't work during mouse down. To do what I think your 
  27. are trying to do you should use a FW_CTracker object. ODFBitmap and 
  28. ODFDraw use tracker objects.
  29.  
  30. Henri Lamiraux
  31. ODF Team
  32.